configure: Turn on -Wempty-body
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>
Thu, 16 Jun 2016 19:59:06 +0000 (13:59 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 22 Jun 2016 16:10:01 +0000 (16:10 +0000)
I spent half an hour debugging an extra semicolon,
and this C "feature" is not used at all in ostree

Closes: #359
Approved by: cgwalters

configure.ac

index d28c410aaff2e1747c3aa283ae37d72481917bf1..d88f24e57b47d45244fc2db76e61294c62184eda 100644 (file)
@@ -17,7 +17,7 @@ AC_PROG_YACC
 
 changequote(,)dnl
 if test "x$GCC" = "xyes"; then
-  WARN_CFLAGS="-Wall -Wstrict-prototypes -Werror=missing-prototypes \
+  WARN_CFLAGS="-Wall -Wempty-body -Wstrict-prototypes -Werror=missing-prototypes \
                -Werror=implicit-function-declaration \
                -Werror=pointer-arith -Werror=init-self -Werror=format=2 \
                -Werror=format-security \